%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% REPLICATION MATERIALS:                                                                     %%%% From the Halls of Congress to K Street: Government Experience and its Value for Lobbying   %%%% BY Pamela Ban, Maxwell Palmer and Benjamin Schneer                                         %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TABLE OF CONTENTS: DATA SETS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
congress_legislators.csv - List of Legislators in Sample period
EPU_vars.dta - Economic Policy Uncertainty
Categorical_EPU_Data.csv - Economic Policy Uncertainty by Category
former_mc.csv - List of Lobbying ID numbers for former MCs
house_appendix.dta - House member characteristics
lobbying_agencies.dta - Lobbying Transactions by Lobbying Agency
lobbyists.dta - Lobbying Transactions by Lobbyist
matched_HouseCandidates_Vote_LobbyistIDs_v5.dta - House Candidates (and election data) matched with lobbyist IDs
matched_SenateCandidates_Vote_LobbyistIDs_v5.dta - Senate Candidates (and election data) matched with lobbyist IDs
missing_cand_names_completed.csv - List of candidate names that could not be matched to SSA name registry (to determine gender probabilities)
rev_door_dstats.dta - Revolving Door Lobbyists Replication Data (i Vidal, Draca and Fons-Rosen 2013).rev_door_match.dta - Manual match of rev_door_dstats.dta
senate_age.dta - Senator age data
senate_appendix.dta - Senator characteristics
ssa_national.rda - Social Security Names database
state_lookup.csv - State Abbreviations

%%%%%%%%%%%%%%%%%%%%%%% DATA SET CITATIONS %%%%%%%%%%%%%%%%%%%%%%%


Baker, S.R., Bloom, N. and Davis, S.J., 2016. Measuring economic policy uncertainty. The quarterly journal of economics, 131(4), pp.1593-1636.

Blanes i Vidal, J., Draca, M. and Fons-Rosen, C., 2012. Revolving door lobbyists. American Economic Review, 102(7), pp.3731-48.

Center for Responsive Politics. 2019. "Lobbying Database." https://www.OpenSecrets.org/lobby/.

Palmer, M. and Schneer, B., 2016. Capitol gains: The returns to elected office from corporate board directorships. The Journal of Politics, 78(1), pp.181-196.

Social Security Administration. 2019. "Beyond the Top 1000 Names." https://www.ssa.gov/oact/babynames/limits.html.

%%%%%%%%%%%%%%%%%%%%%%%%%%%% TABLE OF CONTENTS: CODE %%%%%%%%%%%%%%%%%%%%%%%%%%%%

analyze_lobbyists.do - Analysis generating figures and tables for paper
analyze_rd.R - Analysis generating tables from RD analysis
create_fe.R - R code that creates estimates of lobbyist FEs
epu_plot.R - Creates Plot of EPU data over time
format_fe.R - R code that formats FEs and prepares data set for descriptive regression analysis
format_rd.R - R code that formats election data and FEs for RD analysis
rdd_plots_with_cis.R - Constructs RDD plots with CIs
analyze_officeholder_lobbying.do - Analysis generating figures and tables from Appendix examining correlates of officeholder lobbying

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% INSTRUCTIONS FOR REPLICATION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%-Unzip folder-Set paths in stata code and R code to correct directory locations-Execute code in following order: (1) create_fe.R; (2) format_fe.R; (3) format_rd.R; (4) analyze_lobbyists.do; (5) analyze_rd.do; (6) epu_plot.R; (7) rdd_plots_with_cis.R; (8) analyze_officeholder_lobbying.do
-In some of this code, the user must manually set a local macro option to different options (specified in the comments)
-Note that intermediate data sets are output to the folder "usr_gen" and tables and figures are output to the folder "out"%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% BASE SOFTWARE DEPENDENCIES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%-Stata 15
-R 3.4
